package stat;

public class MaxHPDerivedStat extends DerivedStat {
    
    private final int baseVal = 100;
    
    public MaxHPDerivedStat( StatType st, Stat... toCache) {
        super(st, toCache);
        compute();
    }
    
    public MaxHPDerivedStat( StatType st, int value, Stat... toCache ) {
        super(st, value, toCache);
        //compute();
    }
    
    /**
     * compute max hp based on level and hardiness
     */
    public void compute() {
        setValue(baseVal + getFromCache(StatType.LEVEL)*10 + getFromCache(StatType.HAR)*15);
    }
    
}
